package com.lancoo.znbkxx.teacher.aibkTestCoach.paperToEvaluation.aibkEvalutionDXT

import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseFragment
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.PaperEvaluationInfor
import kotlinx.android.synthetic.main.aibk_adapter_parent_xzt.view.*

class EvaluationFragmentParentDxt(
        val activity: AppCompatActivity,
        val paperEvaluationInfor: PaperEvaluationInfor,
        val index_A: Int,
        val index_B: Int
) : KBaseFragment() {

    private var rootView: View? = null

    override fun createLayout(): Int {
        return R.layout.aibk_adapter_parent_xzt
    }

    override fun initView(view: View?) {
        rootView = view

        var manager = LinearLayoutManager(activity)
        manager.orientation = LinearLayoutManager.VERTICAL
        rootView!!.RvChoice.layoutManager = manager
        val  mAdapter = EvaluationAdapterChildDxt(activity, paperEvaluationInfor,index_A,index_B)
        rootView!!.RvChoice.adapter = mAdapter
    }
}